<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理页面</title>
    <meta name="RentApartment" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/static/css/font.css" media="all" />
    <link rel="stylesheet" href="/static/layui/css/global.css" />
    <link rel="stylesheet" href="/static/css/main.css" />
</head>
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main">
            <a href="/admin/index" class="logo">唐僧智能租房</a>
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav" lay-filter="">
                <li class="layui-nav-item"><a href="/admin/index" target="_self">刷新</a></li>
                <li class="layui-nav-item"><a href="/front/index" target="_blank">前台</a></li>
                <@shiro.hasPermission name="root:setup">
                    <li class="layui-nav-item">
                        <a href="javascript:;">设置</a>
                        <dl class="layui-nav-child"> <!-- 二级菜单 -->
                            <dd><a href="/admin/menu/menulist" target="iframe">菜单管理</a></dd>
                            <dd><a href="/admin/user/userlist" target="iframe">后台用户管理</a></dd>
                            <dd><a href="/admin/role/rolelist" target="iframe">角色权限管理</a></dd>
                        </dl>
                    </li>
                </@shiro.hasPermission>
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="${userinfo.photo}" class="layui-circle" width="35" height="35">
                        <cite><font color="#5FB878">${userinfo.username}</font></cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admin/person/personlist" target="iframe">个人中心</a></dd>
                        <dd><a href="/admin/logout">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="user-photo">
            <a class="img" title="我的头像" ><img src="${userinfo.photo}"></a>
            <p><font color="#5FB878">你好！<span class="userName">${userinfo.username}</span>, 欢迎登录</font></p>
        </div>
        <div class="navBar layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <!-- 侧边导航: -->
                <#list menus as pmenu>
                    <#if (pmenu.rootName)??>
                        <@shiro.hasPermission name="${pmenu.rootName}">
                            <li class="layui-nav-item layui-nav-itemed">
                                <a href="${pmenu.url}">${pmenu.menu}</a>
                                <#if pmenu.itemmenus?? && (pmenu.itemmenus?size>0)>
                                    <dl class="layui-nav-child">
                                        <#list pmenu.itemmenus as item>
                                            <#if (item.rootName)??>
                                                <@shiro.hasPermission name="${item.rootName}">
                                                    <dd><a href="${item.url}" target="iframe">${item.menu}</a></dd>
                                                </@shiro.hasPermission>
                                            <#else>
                                                <dd><a href="${item.url}" target="iframe">${item.menu}</a></dd>
                                            </#if>
                                        </#list>
                                    </dl>
                                </#if>
                            </li>
                        </@shiro.hasPermission>
                    <#else>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a href="${pmenu.url}">${pmenu.menu}</a>
                            <#if pmenu.itemmenus?? && (pmenu.itemmenus?size>0)>
                                <dl class="layui-nav-child">
                                    <#list pmenu.itemmenus as item>
                                        <dd><a href="${item.url}" target="iframe">${item.menu}</a></dd>
                                    </#list>
                                </dl>
                            </#if>
                        </li>
                    </#if>
                </#list>
            </ul>
        </div>
    </div>
  <!-- 右侧内容-->
    <div class="layui-body">
        <div class="layui-tab-content clildFrame">
            <div class="layui-tab-item layui-show">
                <iframe src="/admin/adminlist" id="iframe" name="iframe" frameborder="0">

                </iframe>
            </div>
        </div>
    </div>


    <!-- 底部 -->
    <div class="layui-footer footer">
        <p>copyright @2017 唐僧智能租房-后台管理　　开发者：许伟杰</p>
    </div>
</div>

<script type="text/javascript" src="/static/layui/layui.js"></script>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</body>
</html>